﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration.Conventions;
using System.Data.Objects;

namespace b7.Models
{
    public class b7Models:DbContext
    {
        public DbSet<User> Users { get; set; }
        public DbSet<Member> Members { get; set; }
        public DbSet<Menu> Menus { get; set; }
        public DbSet<NhomSanpham> NhomSanphams { get; set; }
        public DbSet<Sanpham> Sanphams { get; set; }
        public DbSet<BaiViet> BaiViets { get; set; }
        public DbSet<Comment> Comments { get; set; }
        public DbSet<Ad> Ads { get; set; }
        public DbSet<WebInfo> WebInfos { get; set; }
        public DbSet<Orders> Orderss { get; set; }
        public DbSet<OrdersDetail> OrdersDetails { get; set; }
        public DbSet<Cart> Carts { get; set; }
        public DbSet<Theloai> Theloais { get; set; }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Conventions.Remove<PluralizingTableNameConvention>();
        }
       
    }   
}